package com.example.ffepeg.controller;

import com.example.ffepeg.service.QLServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/rate")
public class QLController {

    //不宜采用此方法
    @Autowired
    private QLServiceImpl qlService;

    @PostMapping("/add")
    public String addQLSAmount(@RequestBody String json){
        String id = qlService.addQueue(json);
        return id;
    }
}
